iT邦幫忙

2025 iThome 鐵人賽

DAY 2
0
AI & Data

Rosalind 生物資訊解題系統系列 第 2

Day02 | Rosalind 生資解題 - INI1. Installing Python

  • 分享至 

  • xImage
  •  

Day02 | Rosalind 生資解題 - INI1. Installing Python

首先從 Python新手村 的題目開始做起。

題目連結:https://rosalind.info/problems/ini1/

https://ithelp.ithome.com.tw/upload/images/20250913/20125192XVEDCPpIgp.png

在電腦安裝好Python、進入Python之後

程式碼:

import this

import this 就是引入python自己
便會出現一首Python之禪的詩,這是Python的設計哲學

The Zen of Python, by Tim Peters


Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

把這首詩貼上、交卷


上一篇
Day01 | Rosalind 生資解題 - 平台介紹
下一篇
Day03 | Rosalind 生資解題 - IN2. Variables and Some Arithmetic
系列文
Rosalind 生物資訊解題系統7
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言